﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;

namespace YSLPages
{
    public class SegSignature
    {
        [DllImport("SegSignature.dll")]
        //byte* srcbuf, int srcbufsize, byte* dstbuf, int dstbufsize, int* outputbufsize
        public static extern int SegmentSignature_Mem(byte[] srcBuffer, int srcSzie, byte[] dstBuffer, int dstSize, ref int outputSize);

        [DllImport("Signature.dll")]
        public static extern int LoadDll();

        [DllImport("Signature.dll")]
        public static extern int FreeDll();

        [DllImport("Signature.dll")]
        public static extern int SegmentSignature_Mem(string zipFile, string imgFile);
    }
}
